package com.ruoyi.bantong.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 红包玩法池对象 bt_redbag_poll
 * 
 * @author laohei
 * @date 2021-02-06
 */
public class BtRedbagPoll extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** osid */
    private Integer osid;

    /** id */
    private Integer rpId;

    /** 类型 1日 2周 */
    @Excel(name = "类型 1日 2周")
    private Integer type;

    /** 抽奖编号 */
    @Excel(name = "抽奖编号")
    private String rpCode;

    /** 开奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开奖时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date openTime;

    /** 公布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "公布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 中奖数 */
    @Excel(name = "中奖数")
    private Integer winNum;

    /** 业绩百分比 */
    @Excel(name = "业绩百分比")
    private Integer percentagePer;

    /** 总业绩 */
    @Excel(name = "总业绩")
    private BigDecimal percentageFee;

    /** 修改后 业绩百分比 */
    private Integer updPercentagePer;

    /** 修改后 总业绩 */
    private BigDecimal updPercentageFee;

    /** 中奖金额 */
    @Excel(name = "中奖金额")
    private BigDecimal winFee;

    /** 人数 */
    @Excel(name = "人数")
    private Integer total;

    /** 状态 0创建 1开奖中 2已开奖 3已公布 */
    @Excel(name = "状态 0创建 1开奖中 2已开奖 3已公布")
    private Integer status;

    public Integer getOsid() {
        return osid;
    }

    public void setOsid(Integer osid) {
        this.osid = osid;
    }

    public void setRpId(Integer rpId)
    {
        this.rpId = rpId;
    }

    public Integer getRpId() 
    {
        return rpId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setRpCode(String rpCode) 
    {
        this.rpCode = rpCode;
    }

    public String getRpCode() 
    {
        return rpCode;
    }
    public void setOpenTime(Date openTime) 
    {
        this.openTime = openTime;
    }

    public Date getOpenTime() 
    {
        return openTime;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setWinNum(Integer winNum) 
    {
        this.winNum = winNum;
    }

    public Integer getWinNum() 
    {
        return winNum;
    }
    public void setTotal(Integer total) 
    {
        this.total = total;
    }

    public Integer getTotal() 
    {
        return total;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public BigDecimal getPercentageFee() {
        return percentageFee;
    }

    public void setPercentageFee(BigDecimal percentageFee) {
        this.percentageFee = percentageFee;
    }

    public BigDecimal getWinFee() {
        return winFee;
    }

    public void setWinFee(BigDecimal winFee) {
        this.winFee = winFee;
    }

    public Integer getPercentagePer() {
        return percentagePer;
    }

    public void setPercentagePer(Integer percentagePer) {
        this.percentagePer = percentagePer;
    }

    public Integer getUpdPercentagePer() {
        return updPercentagePer;
    }

    public void setUpdPercentagePer(Integer updPercentagePer) {
        this.updPercentagePer = updPercentagePer;
    }

    public BigDecimal getUpdPercentageFee() {
        return updPercentageFee;
    }

    public void setUpdPercentageFee(BigDecimal updPercentageFee) {
        this.updPercentageFee = updPercentageFee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rpId", getRpId())
            .append("type", getType())
            .append("rpCode", getRpCode())
            .append("openTime", getOpenTime())
            .append("publishTime", getPublishTime())
            .append("winNum", getWinNum())
            .append("total", getTotal())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
